package com.aliang.shopping.service;

import com.aliang.shopping.common.PageResult;
import com.aliang.shopping.model.dto.login.EmailLoginDTO;
import com.aliang.shopping.model.dto.login.LoginDTO;
import com.aliang.shopping.model.dto.common.PageDTO;
import com.aliang.shopping.model.dto.login.PhoneLoginDTO;
import com.aliang.shopping.model.po.Admin;
import com.aliang.shopping.model.vo.CommonUserInfoVO;
import com.aliang.shopping.model.vo.admin.AdminExportVO;
import com.aliang.shopping.model.vo.admin.AdminVO;
import com.aliang.shopping.security.auth.Payload;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ShiBaLover
* @description 针对表【admin】的数据库操作Service
* @createDate 2024-10-09 09:34:18
*/
public interface AdminService extends IService<Admin> {
    PageResult<AdminVO> selectPage(PageDTO pageDTO);

    List<AdminExportVO> getExportList(PageDTO pageDTO);

    Payload login(LoginDTO loginDTO);

    Payload emailLogin(EmailLoginDTO loginDTO);

    Payload phoneLogin(PhoneLoginDTO loginDTO);

    CommonUserInfoVO getUserInfo(Long id);
}
